<template>
    <div>
        <div class="swiper">
            <van-swipe class="my-swipe" :autoplay="2000" indicator-color="white">
                <van-swipe-item><img src="images/swiper1.jpg" alt="" @click="golistDetail"></van-swipe-item>
                <van-swipe-item><img src="images/swiper2.png" alt="" @click="golistDetail"></van-swipe-item>
                <van-swipe-item><img src="images/swiper3.jpg" alt="" @click="golistDetail"></van-swipe-item>
            </van-swipe>
        </div>
    </div>
</template>
<script>
export default {
  methods: {
    golistDetail() {
      this.$router.push({
        path: '/swiperCon'
      })
    }
  }
}
</script>
<style scoped>
.swiper {
  width: 90%;
  height: 1.2rem;
  overflow: hidden;
  border-radius: 0.2rem;
  margin: 15px auto 15px auto;
}
.swiper img {
  width: 100%;
}
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 1.2rem;
  text-align: center;
  /* background-color: #39a9ed; */
}
</style>